{**********
テーブルコンポーネント
*}
<table
	{* テーブル属性設定*}
	{foreach from=$TableAttrList|smarty:nodefault item=AttrTbl}
		{$AttrTbl.name}="{$AttrTbl.value}"
	{/foreach}
>
	{*TH設定がある場合*}
	{if $ThExists == true}
		{*THTR属性設定*}
		<tr
			{foreach from=$TrThAttrList|smarty:nodefault item=TrThAttr}
				{$TrThAttr.name}="{$TrThAttr.value}"
			{/foreach}
		>
			{foreach from=$ThDataset|smarty:nodefault item=ThData key=k}
				{*TH属性設定*}
				<th
					{if  $ThAttrCount > $k}
						{$ThAttrList.$k.name}="{$ThAttrList.$k.value}"
					{/if}
				>
					{*TH表示項目設定*}{$ThData}
				</th>
			{/foreach}
		</tr>
	{/if}

	{*データトラック*}
	{foreach from=$TableDataset|smarty:nodefault item=TrDataset key=i}
		<tr
			{*ＴＲ属性設定*}
			{foreach from=$TrAttrList.$i|smarty:nodefault item=AttrTr}
				{$AttrTr.name}={$AttrTr.value}
			{/foreach}

			{* 奇数ＴＲ属性設定 *}
			{if ($i % 2) != 0}
				{if $OddTrAttrList.0.name != ''}
					{foreach from=$OddTrAttrList|smarty:nodefault item=OddTrAttr}
						{$OddTrAttr.name}="{$OddTrAttr.value}"
					{/foreach}
				{/if}
			{else}
				{if $EvenTrAttrList.0.name != ""}
					{foreach from=$EvenTrAttrList|smarty:nodefault item=EvenTrAttr}
						{$EvenTrAttr.name}="{$EvenTrAttr.value}"
					{/foreach}
				{/if}
			{/if}
		>
			{*ＴＤ属性設定*}
			{foreach from=$TrDataset|smarty:nodefault item=TdData key=i}
				<td
					{foreach from=$TdAttrList.$i|smarty:nodefault item=TdAttr}
						{$TdAttr.name}="{$TdAttr.value}"
					{/foreach}
				>
				{$TdData}
				</td>
			{/foreach}
		</tr>
	{/foreach}

</table>